package com.crm.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the REFUND_DETAILS database table.
 * 
 */
@Entity
@Table(name="REFUND_DETAILS")
@NamedQuery(name="RefundDetail.findAll", query="SELECT r FROM RefundDetail r")
public class RefundDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(initialValue = 1, allocationSize = 1,name="REFUND_DETAILS_REFUNDDETAILSID_GENERATOR", sequenceName="SEQ3")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="REFUND_DETAILS_REFUNDDETAILSID_GENERATOR")
	@Column(name="REFUND_DETAILS_ID")
	private Long refundDetailsId;

	@Column(name="FK_REFUND_ID")
	private BigDecimal fkRefundId;

	@Column(name="FK_REFUND_PRODUCT_ID")
	private BigDecimal fkRefundProductId;

	@Column(name="REFUND_DETAILS_AMOUNT")
	private BigDecimal refundDetailsAmount;

	@Column(name="REFUND_DETAILS_IS_DEL")
	private String refundDetailsIsDel;

	@Column(name="REFUND_DETAILS_MONEY")
	private BigDecimal refundDetailsMoney;

	//bi-directional many-to-one association to Refund
	@ManyToOne
	@JoinColumn(name="REFUND_ID")
	private Refund refund;

	public RefundDetail() {
	}

	public Long getRefundDetailsId() {
		return this.refundDetailsId;
	}

	public void setRefundDetailsId(Long refundDetailsId) {
		this.refundDetailsId = refundDetailsId;
	}

	public BigDecimal getFkRefundId() {
		return this.fkRefundId;
	}

	public void setFkRefundId(BigDecimal fkRefundId) {
		this.fkRefundId = fkRefundId;
	}

	public BigDecimal getFkRefundProductId() {
		return this.fkRefundProductId;
	}

	public void setFkRefundProductId(BigDecimal fkRefundProductId) {
		this.fkRefundProductId = fkRefundProductId;
	}

	public BigDecimal getRefundDetailsAmount() {
		return this.refundDetailsAmount;
	}

	public void setRefundDetailsAmount(BigDecimal refundDetailsAmount) {
		this.refundDetailsAmount = refundDetailsAmount;
	}

	public String getRefundDetailsIsDel() {
		return this.refundDetailsIsDel;
	}

	public void setRefundDetailsIsDel(String refundDetailsIsDel) {
		this.refundDetailsIsDel = refundDetailsIsDel;
	}

	public BigDecimal getRefundDetailsMoney() {
		return this.refundDetailsMoney;
	}

	public void setRefundDetailsMoney(BigDecimal refundDetailsMoney) {
		this.refundDetailsMoney = refundDetailsMoney;
	}

	public Refund getRefund() {
		return this.refund;
	}

	public void setRefund(Refund refund) {
		this.refund = refund;
	}

}